<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</head>
<body>
<form method="get" action="/Day7JSPLogIn/SignUpServlet">
<br/>Username:
<input type="text" name="username"></input>
<br/>Password:
<input type="password" name="password"></input>
<br/>Repeat Password:
<input type="password" name="repassword"></input>
<br/>
<input type="submit" name="signUp" value="Create account"></input>
<input type="submit" name="cancelSignUp" value="Cancel"></input>

</form>

<c:if test="${requestScope.altUser!=null}">
<br/> Username deja folosit
</c:if>

<c:if test="${requestScope.wrongPass!=null}">
<br/> Parola introdusa gresit
</c:if>

<c:if test="${requestScope.accCreated!=null}">
<br/><h1> Account creat</h1>
</c:if>
</body>
</html>